package cn.iocoder.yudao.module.mqtt.controller.admin.deviceauth.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 设备报警授权 Response VO")
@Data
@ExcelIgnoreUnannotated
public class DeviceAuthRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "22251")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "设备ID", example = "5444")
    @ExcelProperty("设备ID")
    private Long deviceId;

    @Schema(description = "报警配置ID", example = "6285")
    @ExcelProperty("报警配置ID")
    private Long alarmId;

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28792")
    @ExcelProperty("用户ID")
    private Long userId;

    @Schema(description = "用户账号", example = "王五")
    @ExcelProperty("用户账号")
    private String userName;

    @Schema(description = "微信通知")
    @ExcelProperty(value = "微信通知", converter = DictConvert.class)
    @DictFormat("mqtt_alarm_push") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String openWeixin;

    @Schema(description = "短信通知", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "短信通知", converter = DictConvert.class)
    @DictFormat("mqtt_alarm_push") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String openSms;

    @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "是否启用", converter = DictConvert.class)
    @DictFormat("mqtt_device_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String ararmStatus;

    @Schema(description = "描述", example = "随便")
    @ExcelProperty("描述")
    private String description;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}